public class Course6719 implements Comparable<Course6719> {

	 private String no;//璇剧▼缂栧彿
	  private String name;//璇剧▼鍚嶇О
	  private String term;//寮�璇惧鏈�
	  private int credit;//瀛﹀垎
	  private int score;//鎴愮哗
	  
	  
  
  public Course6719() {
    super();
  }

  public Course6719(String no,String name, String term, int credit, int score) {
    super();
    this.no=no;
    this.name = name;
    this.term = term;
    this.credit = credit;
    this.score = score;
  }
  public String getNo() {
    return no;
  }

  public void setNo(String no) {
    this.no = no;
  }
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getTerm() {
    return term;
  }

  public void setTerm(String term) {
    this.term = term;
  }
  

  public int getCredit() {
    return credit;
  }

  public void setCredit(int credit) {
    this.credit = credit;
  }

  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }
  
  
  
  @Override
  public int compareTo(Course6719 c) {
	  //鏀寔鑷劧鎺掑簭
	    //鎺掑簭瑙勫垯锛氭寜鎴愮哗闄嶅簭
    return c.getScore()-this.getScore();
  }
 
  
  
  @Override
  public String toString() {
    return String.format("%s %-10s\t%2s,%d,%d",no,name,term,credit,score);
  }
}

